package com.shire.shire_interface.service.user.impl;

import com.shire.shire_interface.dao.user.SystemUserMapper;
import com.shire.shire_interface.model.user.SystemUser;
import com.shire.shire_interface.service.user.SystemUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 作者:  sll
 * 时间:  2019/8/1 17:53
 */
@Service
public class SystemUserServiceImpl implements SystemUserService {

    @Resource
    private SystemUserMapper systemUserMapper;

    @Override
    public SystemUser getUserByUserName(String username) {
        return systemUserMapper.getUserByUserName(username);
    }

    @Override
    public Integer insertSelective(SystemUser userInfo) {
        return systemUserMapper.insertSelective(userInfo);
    }

    @Override
    public SystemUser getUserByUserId(Integer user_id) {
        return systemUserMapper.getUserByUserId(user_id);
    }

    @Override
    public Integer updateByPrimaryKeySelective(SystemUser newSysUser) {
        return systemUserMapper.updateByPrimaryKeySelective(newSysUser);
    }
}
